Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Objects /
Chapter 3 - Style Objects / Style Objects Reference
Functions / Creating and Manipulating Style Objects


GXDisposeStyle

You can use the GXDisposeStyle function to release a reference to a style object.

void GXDisposeStyle(gxStyle target);
target
A reference to the style object to dispose of.
DESCRIPTION
The GXDisposeStyle function decrements the owner count of the style specified by the target parameter and releases any memory used by the style if the owner count goes to 0.

ERRORS, WARNINGS, AND NOTICES
Errors 
style_is_nil 
SEE ALSO
Owner counts for style objects are discussed in the section "Copying, Comparing, and Cloning Style Objects" on page 3-8, and in the section "Manipulating a Style Object's Owner Count" beginning on page 3-11. To examine the owner count of a style, use the GXGetStyleOwners function, described on page 3-22.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996